import Vue from 'vue'
import Class from '@/views/Class'
import Home from '@/views/Home'
import Order from '@/views/Order'
import Score from '@/views/Score'

import VueRouter from 'vue-router'
Vue.use(VueRouter)


const router = new VueRouter({

  routes: [
    {
      path: '/',
      redirect:'/home'
    },
    {
      path: '/class',
      name: 'Class',
      component:Class
    },
    {
      path: '/home',
      name: 'Home',
      component:Home
    },
    {
      path: '/order',
      name: 'Order',
      component:Order
    },
    {
      path: '/score',
      name: 'Score',
      component:Score
    },
  ]

})

export default router